package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechRiskRuleLog;
import com.appkubes.mall.core.po.FintechRiskRuleLogExample;
import com.appkubes.mall.core.po.FintechRiskRuleLogKey;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechRiskRuleLogMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_rule_log
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRiskRuleLogSqlProvider.class, method="countByExample")
    long countByExample(FintechRiskRuleLogExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_rule_log
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechRiskRuleLogSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechRiskRuleLogExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_rule_log
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_risk_rule_log",
        "where risk_type = #{riskType,jdbcType=VARCHAR}",
          "and rule_code = #{ruleCode,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(FintechRiskRuleLogKey key);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_rule_log
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_risk_rule_log (risk_type, rule_code, ",
        "risk_log_key, rule_name, ",
        "rule_value, rule_value_type, ",
        "create_time, updatete_time)",
        "values (#{riskType,jdbcType=VARCHAR}, #{ruleCode,jdbcType=VARCHAR}, ",
        "#{riskLogKey,jdbcType=VARCHAR}, #{ruleName,jdbcType=VARCHAR}, ",
        "#{ruleValue,jdbcType=VARCHAR}, #{ruleValueType,jdbcType=VARCHAR}, ",
        "#{createTime,jdbcType=TIMESTAMP}, #{updateteTime,jdbcType=TIMESTAMP})"
    })
    int insert(FintechRiskRuleLog record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_rule_log
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechRiskRuleLogSqlProvider.class, method="insertSelective")
    int insertSelective(FintechRiskRuleLog record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_rule_log
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRiskRuleLogSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="risk_type", property="riskType", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="rule_code", property="ruleCode", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="risk_log_key", property="riskLogKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="rule_name", property="ruleName", jdbcType=JdbcType.VARCHAR),
        @Result(column="rule_value", property="ruleValue", jdbcType=JdbcType.VARCHAR),
        @Result(column="rule_value_type", property="ruleValueType", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="updatete_time", property="updateteTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechRiskRuleLog> selectByExampleWithRowbounds(FintechRiskRuleLogExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_rule_log
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRiskRuleLogSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="risk_type", property="riskType", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="rule_code", property="ruleCode", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="risk_log_key", property="riskLogKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="rule_name", property="ruleName", jdbcType=JdbcType.VARCHAR),
        @Result(column="rule_value", property="ruleValue", jdbcType=JdbcType.VARCHAR),
        @Result(column="rule_value_type", property="ruleValueType", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="updatete_time", property="updateteTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechRiskRuleLog> selectByExample(FintechRiskRuleLogExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_rule_log
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "risk_type, rule_code, risk_log_key, rule_name, rule_value, rule_value_type, ",
        "create_time, updatete_time",
        "from fintech_risk_rule_log",
        "where risk_type = #{riskType,jdbcType=VARCHAR}",
          "and rule_code = #{ruleCode,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="risk_type", property="riskType", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="rule_code", property="ruleCode", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="risk_log_key", property="riskLogKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="rule_name", property="ruleName", jdbcType=JdbcType.VARCHAR),
        @Result(column="rule_value", property="ruleValue", jdbcType=JdbcType.VARCHAR),
        @Result(column="rule_value_type", property="ruleValueType", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="updatete_time", property="updateteTime", jdbcType=JdbcType.TIMESTAMP)
    })
    FintechRiskRuleLog selectByPrimaryKey(FintechRiskRuleLogKey key);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_rule_log
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRiskRuleLogSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechRiskRuleLog record, @Param("example") FintechRiskRuleLogExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_rule_log
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRiskRuleLogSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechRiskRuleLog record, @Param("example") FintechRiskRuleLogExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_rule_log
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRiskRuleLogSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechRiskRuleLog record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_risk_rule_log
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_risk_rule_log",
        "set risk_log_key = #{riskLogKey,jdbcType=VARCHAR},",
          "rule_name = #{ruleName,jdbcType=VARCHAR},",
          "rule_value = #{ruleValue,jdbcType=VARCHAR},",
          "rule_value_type = #{ruleValueType,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "updatete_time = #{updateteTime,jdbcType=TIMESTAMP}",
        "where risk_type = #{riskType,jdbcType=VARCHAR}",
          "and rule_code = #{ruleCode,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechRiskRuleLog record);
}